package com.sikaryofficial.information.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sikaryofficial.common.security.utils.SecurityUtils;
import com.sikaryofficial.information.domain.dto.req.IndustryNewsListReq;
import com.sikaryofficial.information.domain.dto.resp.IndustryNewsDTO;
import com.sikaryofficial.information.domain.entity.IndustryNews;
import com.sikaryofficial.information.mapper.IndustryNewsMapper;
import com.sikaryofficial.information.service.IIndustryNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 产业新闻Service业务层处理
 * 
 * @author wuweihong
 * @create  2024-09-18
 */
@Service
public class IndustryNewsServiceImpl extends ServiceImpl<IndustryNewsMapper, IndustryNews> implements IIndustryNewsService
{

    @Autowired
    private IndustryNewsMapper industryNewsMapper;

    @Override
    public IPage<IndustryNewsDTO> industryNewsList(Page<IndustryNewsDTO> customerPage, IndustryNewsListReq req) {
        return industryNewsMapper.industryNewsList(customerPage, req, SecurityUtils.getUserId());
    }
}
